package com.yvon.boot.log.feign;

import com.yvon.boot.log.model.SystemLog;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author : Yvon
 * @since : 2022-05-13
 */
@FeignClient(value = "maple-service-system", fallbackFactory = LogFallbackFactory.class)
public interface LogFeignClient {

    /**
     * 日志设置
     *
     * @param systemLog 系统日志
     * @return ResponseEntity
     * @author : Yvon / 2022-05-13
     */
    @PostMapping("/logs/set")
    ResponseEntity set(@RequestBody SystemLog systemLog);
}
